package com.example.shop.order.typehandler;

import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.example.shop.order.enums.OrderState;

public class OrderStateTypeHandler extends JacksonTypeHandler {
    public OrderStateTypeHandler() {
        super(OrderState.class);
    }

    @Override
    protected Object parse(String json) {
        return OrderState.getOrderState(Integer.valueOf(json));
    }

}
